package com.haixiaoke.saas.bill.service.impl;

import com.haixiaoke.saas.bill.domain.Bank;
import com.haixiaoke.saas.bill.mapper.BankMapper;
import com.haixiaoke.saas.bill.service.IBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 银行信息Service业务层处理
 *
 * @author qixi
 * @date 2024-06-25
 */
@Service
public class BankServiceImpl implements IBankService {
    @Autowired
    private BankMapper bankMapper;

    /**
     * 查询银行信息
     *
     * @param id 银行信息主键
     * @return 银行信息
     */
    @Override
    public Bank selectBankById(Long id) {
        return bankMapper.selectBankById(id);
    }

    /**
     * 查询银行信息列表
     *
     * @param bank 银行信息
     * @return 银行信息
     */
    @Override
    public List<Bank> selectBankList(Bank bank) {
        return bankMapper.selectBankList(bank);
    }


}
